<?php
	require_once "../Controle/Config.php";
	require_once "../Controle/Util.php";
	require_once "../Controle/ControleSessao.php";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
	<meta name="author" content="Paulo Rios">
	<!--link href="../css/global.css" rel="stylesheet" type="text/css" /-->
	<title>Untitled 7</title>
</head>

<body>
<div style="padding:10px;width:580px;">
	<div class="tituloPop">Adicionar Nova Categoria</div>
	<div class="alerta" id="DivAlerta"></div>
	<form name="FormGaleriaCategoriaAdd" id="FormGaleriaCategoriaAdd" action="../Controle/ControleGaleriaCategoria.php?Exec=AddCategoria&limite=<?=$_GET['limite'];?>&pag=<?=$_GET['pag'];?>&<?=mt_rand(1,2500);?>" method="post" enctype="multipart/form-data" >
	<table width="100%">
	<tr>
	<td>
	<table bgcolor="#f7f7f7" width="100%" border="0">	
		<tr>
			<td width="110">Nome da Categoria</td>
			<td><input type="text" id="categoria" name="categoria" class="semfococinza" onfocus="this.className='comfococinza'" onblur="this.className='semfococinza'" style="width:100%;" /></td>
		</tr>
		<tr>
			<td>Data</td>
			<td>
			<!-- select dia -->
			<select name="dia">
				<option value=00>00</option>
				<?php for($x=1;$x<=31;$x++):?><option value=<?php echo $x;?>><?php echo $x;?></option><?php endfor; ?>
			</select>/
			<!-- select mes -->
			<select name="mes">
				<option value=00>00</option>
				<?php for($x=1;$x<=12;$x++):?><option value=<?php echo $x;?>><?php echo $x;?></option><?php endfor; ?>
			</select>/
			<!-- select ano -->
			<select name="ano">
				<option value=0000>0000</option>
				<?php for($x=1900;$x<=date('Y');$x++):?><option value=<?php echo $x;?>><?php echo $x;?></option><?php endfor; ?>
			</select>
			<!--input type="text" name="nascimento" id="nascimento" class="semfococinza" onfocus="this.className='comfococinza'" onblur="this.className='semfococinza'" style="width:100%;" value="dd/mm/aaaa" /-->
			</td>
		</tr>
		<tr>
			<td valign="top">Descri&ccedil;&atilde;o</td>
			<td><textarea name="descricao" rows="10" class="textareapadraosemfoco" onfocus="this.className='textareapadraocomfoco'" onblur="this.className='textareapadraosemfoco'" style="width:100%;"></textarea></td>
		</tr>
	</table>
	<table width="100%" bgcolor="#ffffff" border="0">
		<tr>
			<td width="110">Foto/Imagem</td>	
			<td><input type="file" name="foto" id="foto" class="file" /></td>
		</tr>
	</table>
	<table width="100%" bgcolor="#f7f7f7" border="0">
		<tr>
			<td width="110">Status</td>	
			<td>
				<select name="status">
					<option value=1>Desbloqueada</option>
					<option value=0>Bloqueada</option>
				</select>
			</td>
		</tr>
	</table>
	<table width="100%" border="0">
		<tr>
			<td>&nbsp;</td>
			<td></td>
		</tr>
		<tr>
			<td width="110"></td>	
			<td><input type="button" class="btsubmit" value="CONFIRMA" onclick="validarCamposCategoria();" /></td>
		</tr>
	</table>
	</td>
	<!-- manipulacao da imgem -->
	<td width="180" style="padding:5px;" valign="top">
				<div style="border:solid 1px #cccccc;padding:5px;">
					Redimensionamento da Imagem
				</div>
				<div style="border:solid 1px #cccccc;padding:5px;background-color:#f7f7f7;">
					<select onchange="javascript:VerTipoRedimensionamento(this.value)" name="manip_tipo_dimensao">
						<option value="proporcao">Propor&ccedil;&atilde;o</option>
						<option value="recorte">Recorte</option>
					</select>
					<hr size="1">
					<div id="proporcao">
					<input type="radio" name="dimen" value="500x375" /> 500 &times; 375 (Recomendado)<br>
					<input type="radio" name="dimen" value="800x600" /> 800 &times; 600<br>
					<input type="radio" name="dimen" value="1024x768" /> 1024 &times; 768<br>
					<input type="radio" name="dimen" value="original" checked > Manter dimens&atilde;o original<br>
					</div>
					<div id="recorte" style="display:none;">
					<table>
						<tr>
							<td>Largura</td>
							<td>altura</td>
						</tr>
						<tr>
							<td><input type="text" style="width:60px;" name="x" /></td>
							<td><input type="text" style="width:60px;" name="y" /></td>
						</tr>
					</table>
					</div>
				</div>
			</td>
		</tr>
		</table>
		</form>
</div>
<script>
	setTimeout("foco('nome')",500);
</script>
</body>
</html>